package com.cargroup.bean;

import java.awt.*;
import java.io.InputStream;
import java.util.Arrays;

public class User {
    private int id;
    private String name;
    private String idcard;
    private String password;
    private String phone;
    private String license;

    public User() {
    }

    public User(int id, String name, String idcard, String password, String phone) {
        this.id = id;
        this.name = name;
        this.idcard = idcard;
        this.password = password;
        this.phone = phone;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getLicense() {
        return license;
    }

    public void setLicense(String license) {
        this.license = license;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", idcard='" + idcard + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", license='" + license + '\'' +
                '}';
    }
}
